package cn.com.shopec.erp.system.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @ClassName AccessVo
 * @Description 权限Vo
 * @author chengui
 * @date 2013-5-31 下午2:26:49
 */
public class AccessVo {
	
	/** 主键. */
	private String id;
	/** 父主键. */
	private String parentId;
	/** 权限列表显示的名称. */
	private String text;
	/** 权限列表菜单的子级. */
	private List<AccessVo> children = new ArrayList<AccessVo>();
	/** 菜单名称. */
	private String menuName;
	/** 菜单URL. */
	private String menuUrl;
	/** 菜单结构. */
	private String structure;
	/** 菜单级别. */
	private int level;
	/** 是否有子菜单:0-没有，1-有. */
	private int hasleaf;
	/** 菜单排序. */
	private int menuSort;
	/** 菜单类型:1-平台，2-供应商. */
	private int menuType;
	/** 权限名称. */
	private String accessName;
	/** 权限类型:1-菜单，2-页面元素. */
	private int accessType;
	/** 是否直接放行:1-需要授权，2-直接放行. */
	private int needsAuthorization;
	/** 备注. */
	private String remark;
	/** 是否初始化为展开. */
	private boolean isexpand = false;
	/** 是否初始化选择. */
	private boolean ischecked = false;
	/** 角色ID. */
	private String roleId;
	/** 删除标识:0-已删除，1-未删除. */
	private int deleteFlag;
	
	public AccessVo() {
		super();
	}
	public AccessVo(String id) {
		super();
		this.id = id;
	}
	public AccessVo(String id, String parentId, String text,
			List<AccessVo> children, String menuName, String menuUrl,
			String structure, int level, int hasleaf, int menuSort,
			int menuType, String accessName, int accessType,
			int needsAuthorization, String remark, boolean isexpand,
			boolean ischecked, String roleId, int deleteFlag) {
		super();
		this.id = id;
		this.parentId = parentId;
		this.text = text;
		this.children = children;
		this.menuName = menuName;
		this.menuUrl = menuUrl;
		this.structure = structure;
		this.level = level;
		this.hasleaf = hasleaf;
		this.menuSort = menuSort;
		this.menuType = menuType;
		this.accessName = accessName;
		this.accessType = accessType;
		this.needsAuthorization = needsAuthorization;
		this.remark = remark;
		this.isexpand = isexpand;
		this.ischecked = ischecked;
		this.roleId = roleId;
		this.deleteFlag = deleteFlag;
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public List<AccessVo> getChildren() {
		return children;
	}
	public void setChildren(List<AccessVo> children) {
		this.children = children;
	}
	public String getMenuName() {
		return menuName;
	}
	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}
	public String getMenuUrl() {
		return menuUrl;
	}
	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}
	public String getStructure() {
		return structure;
	}
	public void setStructure(String structure) {
		this.structure = structure;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public int getHasleaf() {
		return hasleaf;
	}
	public void setHasleaf(int hasleaf) {
		this.hasleaf = hasleaf;
	}
	public int getMenuSort() {
		return menuSort;
	}
	public void setMenuSort(int menuSort) {
		this.menuSort = menuSort;
	}
	public int getMenuType() {
		return menuType;
	}
	public void setMenuType(int menuType) {
		this.menuType = menuType;
	}
	public String getAccessName() {
		return accessName;
	}
	public void setAccessName(String accessName) {
		this.accessName = accessName;
	}
	public int getAccessType() {
		return accessType;
	}
	public void setAccessType(int accessType) {
		this.accessType = accessType;
	}
	public int getNeedsAuthorization() {
		return needsAuthorization;
	}
	public void setNeedsAuthorization(int needsAuthorization) {
		this.needsAuthorization = needsAuthorization;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public boolean isIsexpand() {
		return isexpand;
	}
	public void setIsexpand(boolean isexpand) {
		this.isexpand = isexpand;
	}
	public boolean isIschecked() {
		return ischecked;
	}
	public void setIschecked(boolean ischecked) {
		this.ischecked = ischecked;
	}
	public String getRoleId() {
		return roleId;
	}
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
	public int getDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(int deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	
}
